package com.gupao.javavip.netty.push.protocol;

import com.gupao.javavip.netty.push.api.Response;
import lombok.extern.apachecommons.CommonsLog;
import org.msgpack.MessagePack;

import java.io.IOException;

@CommonsLog
public class ResponseDecoder extends AbstractMessagePackDecoder<Response> {
    @Override
    protected Response decodeByMessagePack(MessagePack messagePack, byte[] array) throws IOException {
        return messagePack.read(array, Response.class);
    }
}
